<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/all.conf.php');
require_once(__PHY_LIB.'/inc/page.inc.php');
require_once(__PHY_LIB.'/class/uUser.class.php');
require_once(__PHY_LIB.'/class/uWork.class.php');

$rP = validate($_GET, 'id:n');

$oHomeUser = new uUser($rP['id']);
$oTpl->assign('rHomeUser', $oHomeUser->getData());

/// 该用户的其他作品 ///
$oList = new uWorkList();
$oList->cfgWhere("owner_id='".$oHomeUser->getID()."'");
$oList->cfgOrder("id DESC");
$oList->load();
while ($oOne = $oList->nextItem()) {
	$oOne->getSku(0, 0, true);
}
$oTpl->assign('rWorks', $oList->fetchArray());

$oTpl->display(dirname(__FILE__).'/'.basename(__FILE__, '.php').'.tpl');
?>
